<?php require 'parts/_header.php' ?>
		
			<?php if ($isAuth) : ?>
				<?php require 'controllers/databaseListController.php'; ?>
				
				<!--Список баз данных -->
				<div style="float: left">
					<table border="1">
						<?php foreach ($aDatabases as $database) : ?>
							<tr>
								<form method="post">
								<td><a href="databaseDetail.php?dbName=<?= $database->name ?>"><?= $database->name ?></a></td>
								<td>
									<input class="button-delete" type="submit" name="dropDatabase" value=""/>
									<input type="hidden" name="dbName" value="<?= $database->name ?>"/>
										
								</td>
								</form>
							</tr>
						<?php endforeach; ?>
					</table>
				</div>
				<div style="margin-left: 230px;">
					<form class="mini-form" method="post">
						<span class="title">Создать базу данных</span>
						<ul>					
							<li>
								<label>Название</label><br/>
								<input type="text" name="newDbName"/>
							</li>								
						</ul>
						<input class="button" type="submit" value="OK"/>						
					</form>
					
				</div>
			<?php endif;?>
	

<?php require 'parts/_footer.php' ?>